package com.xxiongb.business.repository.entity;

import java.util.Date;

import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection="album_requester")
@CompoundIndexes({
    @CompoundIndex(name = "album_requester_idx", def = "{'userID': 1, 'requesterID': 1}")
})
public class AlbumRequester {
	private String id;
	private String userID;
	private String requesterID;
	private SimpleUser requesterUser;
	private int requestStatus = 0;//0 请求中 1 同意 -1拒绝
	private Date requestDate;
	
	public SimpleUser getRequesterUser() {
		return requesterUser;
	}
	public void setRequesterUser(SimpleUser requesterUser) {
		this.requesterUser = requesterUser;
	}
	public int getRequestStatus() {
		return requestStatus;
	}
	public void setRequestStatus(int requestStatus) {
		this.requestStatus = requestStatus;
	}
	public String getId() {
		return id;
	}
	public String getUserID() {
		return userID;
	}
	public void setUserID(String userID) {
		this.userID = userID;
	}
	public String getRequesterID() {
		return requesterID;
	}
	public void setRequesterID(String requesterID) {
		this.requesterID = requesterID;
	}
	public Date getRequestDate() {
		return requestDate;
	}
	public void setRequestDate(Date requestDate) {
		this.requestDate = requestDate;
	}
}
